// 导入mysql模块
const mysql = require('mysql')
// 创建数据库连接对象
const db = mysql.createPool({
    host:'localhost',
    user:'root',
    password:'admin123',
    database:'my_db_01',
    port: '3306'
})
module.exports = db